package com.forum.Service;

import com.forum.Entity.Topic;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface TopicService {



    void addTopic(Topic topic);

    void updateTopic(Topic topic);

    void deleteTopic(String topicId);

    PageInfo<Topic> getTopicList(Integer pageNum, Integer pageSize, String topicName);

    List<Topic> getTopicLists();

    PageInfo<Topic> getTopicListByThree(Integer pageNum, Integer pageSize, String topicName, String username);
}
